#{extends 'main.html' /} #{set title:'User Ideas' /}#{set 'moreStyles'}

<script type="text/javascript">
	$(document).ready(
			function() {
				$('.left, .content input, .content textarea, .content select')
						.focus(function() {
							$(this).parents('.row').addClass("over");
						}).blur(function() {
							$(this).parents('.row').removeClass("over");
						});
			});
</script>



	<script type="text/javascript">
		function createTarget(t) {
			window.open("", t, "width=600,height=550");
			return true;
		}
	</script>



#{/set}
<div id=main>


<div id="User-Ideas">

<br></br>
<h1>List of Your Ideas: </h1>
#{if ideas}
#{list items:ideas, as:'idea'}
#{if idea.hide==false}
<li><a href="javascript: jQuery.facebox({ajax:'@{PostingIdea.ShowUserIdea(idea.id)}'});">${idea.title}</a>
			</li>

			
#{if idea.topic}

    posted in Topic: <a href="javascript: jQuery.facebox({ajax:'@{Topics.showTopic(idea.topic.id)}'});">${idea.topic.title}</a></a>
    in Entity: <a href="javascript: jQuery.facebox({ajax:'@{Entity.viewEntity(idea.topic.entity.id)}'});">${idea.topic.entity.entityName}</a></a>
    in Organization: <a href="@{Organizations.showOrganization(idea.topic.entity.organization.id)}" > ${idea.topic.entity.organization.name}</a> 
   

#{/if}

#{if idea.entity}
 posted in Entity: <a href="javascript: jQuery.facebox({ajax:'@{Entity.viewEntity(idea.entity.id)}'});">${idea.entity.entityName}</a></a>
 in Organization: <a href="@{Organizations.showOrganization(idea.entity.organization.id)}" >${idea.entity.organization.name}</a>
#{/if}

#{if idea.organization}
    posted in Organization:<a href="@{Organizations.showOrganization(idea.organization.id)}" >${idea.organization.name}</a>
#{/if}
</li>
#{/if}
#{/list}

#{/if}
#{else}
Sorry! you currently have no Ideas !!
#{/else}

</div>
</div>
